class CommitmentType implements Comparable {

    static hasMany = [commitments: Commitment]

    String name
    String description

    static constraints = {
        name(blank: false)
        description(blank: true)
    }

    String toString() {
        return name
    }

    int compareTo(obj) {
        name.compareTo(obj.name)
   }
}
